﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebReport.Models
{
	public class YieldData
	{
		public List<YieldMoude> yield { get; set; }

		public List<FailureModePlato> failuremodeplato { get; set; }

		public List<YieldMachine> yieldmachine { get; set; }

		public List<FinalYield> finalyieldWeek { get; set; }

		public List<FinalYield> finalyieldDay { get; set; }

		public List<RejectRate> rejectrateWeek { get; set; }

		public List<RejectRate> rejectrateDay { get; set; }
	}

	public class YieldMoude
	{
		public string row_id { get; set; }

		public string rowspan { get; set; }

		public string product_code { get; set; }

		public string process_id { get; set; }

		public string input_qty { get; set; }

		public string output_qty { get; set; }

		public string prime_yield { get; set; }

		public string final_yield { get; set; }

		public string prime_reject_count { get; set; }

		public string retest_pass_count { get; set; }

		public string failure_mode { get; set; }

		public string prime_reject { get; set; }

		public string retest_pass { get; set; }

		public string prime_reject_rate { get; set; }

		public string final_reject_rate { get; set; }
	}

	public class FailureModePlato
    {
        public string proj_code { get; set; }

		public string process_id { get; set; }

        public string tester { get; set; }

        public int sum_fail { get; set; }

        public string input_qty { get; set; }

		public string pass { get; set; }

		public string prime_yield { get; set; }

		public string final_yield { get; set; }

		public string failure_mode { get; set; }

        public int prime_reject { get; set; }

        public int retest_pass { get; set; }

        public int sum_reject { get; set; }

        public int failure_reject { get; set; }

        public decimal prime_reject_rate { get; set; }

		public decimal final_reject_rate { get; set; }

        public decimal plato_vaule { get; set; }

        public string final_plato_json { get; set; }

        public string prime_plato_tester_json { get; set; }

        public string prime_plato_json { get; set; }
        
    }
	
	public class YieldMachine
	{
        public int sort { get; set; }

        public string process_id { get; set; }

        public string tester { get; set; }

        public int input { get; set; }

        public int pass { get; set; }

        public int abort { get; set; }

        public int fail { get; set; }

        public int prime_reject { get; set; }

        public decimal tester_prime_yield { get; set; }

        public string tester_prime_yield_json { get; set; }

        public string tester_failure_mode_prime_yield_json { get; set; }

        public string tester_day_prime_yield_json { get; set; }
    }

	public class FinalYield
	{
        public int sort { get; set; }

        public string proj_code { get; set; }

        public string process_id { get; set; }

        public int input { get; set; }

        public int output { get; set; }

        public int reject { get; set; }

        public string prime_yield { get; set; }

        public int retest_pass { get; set; }

        public string final_yield { get; set; }

        public string date { get; set; }
    }

	public class RejectRate
	{
		public int sort { get; set; }

		public string proj_code { get; set; }

		public string process_id { get; set; }

		public int input { get; set; }

		public int output { get; set; }

		public int sum_reject { get; set; }

		public string prime_yield { get; set; }

		public string failure_mode { get; set; }

		public int reject { get; set; }

		public string prime_reject_rate { get; set; }

		public int retest_pass { get; set; }

		public string final_reject_rate { get; set; }

		public string date { get; set; }
	}

	public class Comboxlist
	{
		public string text { get; set; }

		public string value { get; set; }
	}

}
